package com.androinject.core.aware;

import com.androinject.core.definitions.ComponentDefinition;
import com.androinject.core.definitions.ManagedComponentDefinition;

public class ComponentIdAwareProcessor extends AbstractAwareProcessor<ComponentIdAware> {

	public ComponentIdAwareProcessor() {
		super(ComponentIdAware.class);
	}

	
	@Override
	protected void handleComponent(ComponentIdAware component, ComponentDefinition definition) {
		component.setComponentId(definition.getId());
	}
	

	@Override
	protected void handleManagedComponent(ComponentIdAware component, ManagedComponentDefinition definition) {
		component.setComponentId(definition.getId());
	}

}
